#include "interpreter.h"

interpreter::~interpreter()
{
	for(list<album*>::iterator i = _albums.begin(); 
	    i != _albums.end(); ++i) {
		delete (*i);
	}
}

string interpreter::interpreter::to_xml() const
{
	string xml = "<interpreter name=\"" + _name + "\">";
	for(list<album*>::const_iterator i = _albums.begin(); 
	    i != _albums.end(); ++i) {
		xml += (*i)->to_xml();
	}
	xml += "</interpreter>";

	return xml;
}

